package com.example.jqying.androiddemo.vistorPattern.data;

import com.example.jqying.androiddemo.vistorPattern.vistorInterface.IAccountBookView;
import com.example.jqying.androiddemo.vistorPattern.vistorInterface.IBill;

/**
 * Created by apple on 2018/7/3.
 */

public class IncomeBill implements IBill {
    private String item;
    private int amount;




    public IncomeBill(String item,int amount){
        this.item = item;
        this.amount = amount;
    }

    public String getItem(){
        return item;
    }

    public int getAmount(){
        return amount;
    }

    @Override
    public void accept(IAccountBookView iAccountBookView){
        iAccountBookView.view(this);
    }

}
